package com.kiwilss.aopdemo

import android.app.Application
import com.kiwilss.aopdemo.startup.SampleFirstStartup
import com.kiwilss.aopdemo.startup.SampleSecondStartup
import com.rousetime.android_startup.StartupManager
import dagger.hilt.android.HiltAndroidApp

/**
 * @author : Administrator
 * e-mail : kiwilss@163.com
 * time   : 2021/02/02
 *  desc   :
 */
@HiltAndroidApp
class App: Application() {
    override fun onCreate() {
        super.onCreate()


        StartupManager.Builder()
            .addStartup(SampleFirstStartup())
            .addStartup(SampleSecondStartup())
            .build(this)
            .start()
            .await()



    }
}